Newer meson versions complain about newline characters in regular
strings, so switch to a proper multi-line string.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2350>
)
polkit_has_autocleanup = cc.compiles(
- '#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE
+'''
+ #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE
#include <polkitagent/polkitagent.h>
- void main(void) { g_autoptr(PolkitAgentListener) agent = NULL; }',
+ void main(void) { g_autoptr(PolkitAgentListener) agent = NULL; }
+''',
dependencies: polkit_dep)
cdata.set('HAVE_POLKIT_AUTOCLEANUP', polkit_has_autocleanup)